#Python program-2 find factorial of a number using while loop a = int(input('Enter a number to find its factorial: ')) num = 1 while a >= 1: num = num * a a = a - 1 print('The Factorial of the number is:', num)